home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nibble Magazine
/
nib42b.dsk
/
REPEAT DEMO.bas
< prev
next >
Wrap
BASIC Source File
|
2023-02-26
|
461b
|
17 lines
10 <UNKNOWN TOKEN>
15 HOME
20 INPUT "HOW MANY STUDENTS ";S
25 DIM N$(S),G$(S)
30 <UNKNOWN TOKEN>
40 N = N +1
50 INPUT "ENTER THE STUDENT'S NAME ";N$(N)
60 INPUT "ENTER THE STUDENT'S GRADE ";G$(N)
65 PRINT
70 <UNKNOWN TOKEN>N = S
75 N = 0
80 HOME : PRINT " STUDENT GRADE"
90 <UNKNOWN TOKEN>
100 N = N +1:S1 = (20 - LEN(N$(N)))/2:S2 = (20 - LEN(G$(N)))/2
110 PRINT SPC( S1);N$(N); SPC( S1 +S2);G$(N)
120 <UNKNOWN TOKEN>N = S
130 END